<?php

namespace app\kaoqin\api\s;

use api\common\Api;
use api\common\Rand;

class All extends Api
{
    public function lists()
    {
        $ret = [
            'name' => Rand::arrays([1, 2, 3, 4, 5, 6]),
            'count' => Rand::int(4, 6),
            'status' => Rand::bool()
        ];

        if (Rand::bool(0.7))
            return $this->success($ret);
        else
            return $this->error("错误提示".Rand::int());
    }

}